<?php
/* @var $this TagController */
/* @var $model Tag */

$this->breadcrumbs=array(
	'Tags'=>array('index'),
	'Manage',
);
?>

<div class="page-header">
	<div class="page-title"><h3>Manage Tags</h3></div>
	<div class="buttons">
		<a href="<?php echo $this->createurl('create')?>" class="btn btn-primary">Add Tag</a>
	</div>
</div>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'category-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'name',
		
		array(
			'header'=>'Post',
			'value'=>'$data->post_count'
		),

		// actions
		array(
			'header'=>'Actions',
			'class'=>'CButtonColumn',
			'template'=>'{update} {delete}',
			'headerHtmlOptions'=>array('class'=>'span2')
		),
	),
	'itemsCssClass'=>'table table-bordered table-hover',
	'cssFile'=>false,
)); ?>